from flask import Blueprint

from .feedback import BP_feedback, init as init_feedback
from .cos import BP_cos, init as init_cos
from .musician import BP_musician, init as init_musician
from .local_test import BP_local_test, init as init_local_test

BP_handlers = Blueprint("BP_handlers", __name__)

def create_BP_handlers(debug):
    init_feedback(debug)
    BP_handlers.register_blueprint(BP_feedback)

    init_cos(debug)
    BP_handlers.register_blueprint(BP_cos)

    init_musician(debug)
    BP_handlers.register_blueprint(BP_musician)

    init_local_test(debug)
    BP_handlers.register_blueprint(BP_local_test)
    
    return BP_handlers

